package com.jiazhong.dimap;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @Auther:shuXin
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Student {
    private Integer studentId;
    private String studentName;
    //放置一个map集合
    private Map<String, Teacher> teacherMap;
    //设置一个list集合存储课程类
    private List<Lesson> lessonList;

    public void info() {
        System.out.println("学生编号：" + studentId + "学生的姓名" + studentName);
        System.out.println("老师信息：" + teacherMap);
        System.out.println("课程信息：" + lessonList);
    }
}
